package moder

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(32)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type Role struct {
	gorm.Model
	RodeName string `gorm:"type:varchar(30)"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(30)"`
}
type Per struct {
	gorm.Model
	PerName string `gorm:"type:varchar(30)"`
	PerYeas int    `gorm:"type:int"`
}
type Order struct {
	gorm.Model
	OrderCode string `gorm:"type:varchar(30)"`
	OrderName string `gorm:"type:varchar(30)"`
	Pid       int    `gorm:"type:int"`
}

type PerOrder struct {
	OrderId   int `gorm:"column:orderId"`
	PerName   string
	PerYeas   int
	OrderCode string
	OrderName string
}
